﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SimpleRest.Core;

namespace SimpleRest.WebTest.Handlers
{
    public class ComplexTypeTestMappingHandler : OperationMappingHandler
    {
        public ComplexTypeTestMappingHandler()
            : base("complexType") { }

        public override object ExecuteMapping(IHttpRequestMessage request, Operation operation)
        {
            return new ComplexTypeObject("some value");
        }
    }

    public class ComplexTypeObject
    {
        private readonly string Value;
        public ComplexTypeObject(string value)
        {
            this.Value = value;
        }
    }
}